(function(){
    'use strict';

    var app = angular.module('myApp');
    
    app.config( [ '$routeProvider', '$httpProvider',  function( $routeProvider, $http ){
    	
    	//$httpProvider.interceptors.push( 'SessionInterceptorService' );
    	
    	$routeProvider
			/* Home Routes */
	        .when('/home', {
	            templateUrl: '/app/home-module/views/home.html',
	            controller: 'HomeController',
	            tab: 'home',
	            domain: 'site'
	        } )
		
			/* Login Routes */
			.when('/login', {
	            templateUrl: '/app/login-module/views/login.html',
	            controller: 'LoginController',
	            tab: 'login',
	            domain: 'login'
	        } )
			.when('/auth', {
	            templateUrl: '/app/login-module/views/auth.html',
	            controller: 'LoginController',
	            tab: 'auth',
	        } )
	
			/* Default route */
			.otherwise( { redirectTo: '/home' } );
    	
    } ] );

})();
